package com.ss.android.newmedia.e;

import android.content.DialogInterface;
import android.content.DialogInterface;
import android.webkit.GeolocationPermissions;

final class k implements DialogInterface.OnClickListener {
    private final GeolocationPermissions.Callback a;
    private final String b;

    k(GeolocationPermissions.Callback arg1, String arg2) {
        this.a = arg1;
        this.b = arg2;
    }

    public final void onClick(DialogInterface arg5, int arg6) {
        if(arg6 == -2) {
            this.a.invoke(this.b, false, false);
            arg5.dismiss();
        }
        else if(arg6 == -1) {
            this.a.invoke(this.b, true, true);
            arg5.dismiss();
        }
    }
}

